-- GENERATED SPELL FOR [Spectral Stable Hand] --


function spell0_15551(pUnit, Event) --@Healing Touch,Heal--
pUnit:FullCastSpellOnTarget(29339,pUnit)
pUnit:RegisterEvent('Sorts_15551', 3000, 1)
end

function spell1_15551(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(18812,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15551', 2000, 1)
end

function spell2_15551(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15551', 20000, 1)
end

function spell3_15551(pUnit, Event) --@Whip Rage,n/a--
pUnit:FullCastSpellOnTarget(29340,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15551', 30252, 1)
end

function Sorts_15551(pUnit, Event)
local choix_sorts_15551 = math.random(0, 3)
if choix_sorts_15551 == 0 then
pUnit:RegisterEvent('spell0_15551', 1, 1)
end
if choix_sorts_15551 == 1 then
pUnit:RegisterEvent('spell1_15551', 1, 1)
end
if choix_sorts_15551 == 2 then
pUnit:RegisterEvent('spell2_15551', 1, 1)
end
if choix_sorts_15551 == 3 then
pUnit:RegisterEvent('spell3_15551', 1, 1)
end
end

function mob15551_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15551', math.random(1500, 3000), 1)
end

function mob15551_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15551_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15551_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15551, 1, 'mob15551_Action')
RegisterUnitEvent(15551, 2, 'mob15551_Leave')
RegisterUnitEvent(15551, 3, 'mob15551_Kill')
RegisterUnitEvent(15551, 4, 'mob15551_Die')
